<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>小区成交报表</title>
    <meta name="decorator" content="default"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<form:form id="searchForm" modelAttribute="report" action="${ctx}/homelink/query" method="post" class="breadcrumb form-search">
    <div style="margin-top:8px;">
        <label>小区名称：</label>
        <input name="xiaoquname" htmlEscape="false" maxlength="50" class="input-medium"/>
        &nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
    </div>
</form:form>
<sys:message content="${message}"/>
<div id="chartContainer">FusionCharts XT will load here!</div>
<script type="text/javascript">
        FusionCharts.ready(function(){
            var revenueChart = new FusionCharts({
                "type": "scrollcombidy2d",
                "renderAt": "chartContainer",
                "width": "1200",
                "height": "600",
                "dataFormat": "json",
                "dataSource": ${dataSource}
            });
            revenueChart.render("chartContainer");
        })
</script>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead><tr>
        <th>年</th>
        <th>月</th>
        <th>成交套数</th>
        <th>平均单价</th>
    </tr></thead>
    <tbody>
    <c:forEach items="${list}" var="report">
        <tr>
            <td>${report.year}</td>
            <td>${report.month}</td>
            <td>${report.number}</td>
            <td>${report.price}</td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>
